package com.whosly.mysql.protocol.packet.jdbc;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author 风杨
 * @see <a href="yueny09@163.com">mailTo: yueny09@163.com</a>
 */
public interface IAuthPacket extends Serializable {
    byte getCharset();

    Optional<String> getUsername();

    byte[] getEncryptedPassword();

    Optional<String> getDatabase();

    byte getPacketId();

}